package org.dromara.web.domain.bo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.poi.hpsf.Decimal;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import org.dromara.web.domain.TPay;

import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TPay.class, reverseConvertGenerate = false)
public class TPayBo extends BaseEntity {

    /**
     * 支付ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    @TableField(value = "pay_id")
    private Long payId;

    /**
     * 订单编号
     */
    @TableField(value = "order_no")
    private String orderNo;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 支付金额
     */
    @TableField(value = "amount")
    private BigDecimal amount;

    /**
     * 支付方式
     */
    @TableField(value = "pay_channel")
    private String payChannel;

    /**
     * 支付状态
     */
    @TableField(value = "pay_status")
    private String payStatus;

}
